<template>
  <div>
    <div class="login-head">
      <span style="color: #fff" @click="jumpFn()">
        <van-icon name="arrow-left"
      /></span>
      <span class="login-title">会员中心</span>
      <span></span>
    </div>
    <p class="welcome">为账户{{ userV }}购买会员</p>
    <!-- ------------------------------------------------------------- -->
    <div class="middle-part">
      <div class="middle-part-list-1">
        <p>会员特权</p>
        <p @click="jumpVipSm()">会员说明</p>
      </div>
      <div class="middle-part-list-2">
        <div class="middle-part-list-2-left">
          <img
            src=""
            alt=""
          />
        </div>
        <div class="middle-part-list-2-right">
          <h5>减免配送费</h5>
          <p>每月减免30单，每日可减免3单，每单最高减4元</p>
          <p>蜂鸟专送专享</p>
        </div>
      </div>
      <div class="middle-part-list-2">
        <div class="middle-part-list-2-left">
          <img
            src=""
            alt=""
          />
        </div>
        <div class="middle-part-list-2-right">
          <h5>减免配送费</h5>
          <p>每月减免30单，每日可减免3单，每单最高减4元</p>
          <p>蜂鸟专送专享</p>
        </div>
      </div>
    </div>
    <div class="waist-part">
      <div class="waist-part-list1">
        <p>开通会员</p>
      </div>
      <div class="waist-part-list2">
        <p>1个月<span style="color: #f60">20元</span></p>
        <p class="buy" @click="jumpPayment()">购买</p>
      </div>
    </div>
    <div class="leg-part" @click="jumpExchangeVip()">
      <p>兑换会员</p>
      <p>使用卡号卡密</p>
    </div>
    <div class="leg-part">
      <p>购买记录</p>
      <p>开发票</p>
    </div>
    <router-view class="animated fadeInRightBig"></router-view>
  </div>
</template>

<script>
export default {
  name: "vipCenter",

  data() {
    return {
      userV: window.localStorage.getItem("userValue"),
    };
  },
  mounted() {},
  methods: {
    jumpFn() {
      this.$router.push({
        name: "myVal",
      });
    },
    jumpVipSm() {
      this.$router.push({
        name: "vipSm",
      });
    },
    jumpPayment() {
      this.$router.push({
        name: "payment",
      });
    },
    jumpExchangeVip() {
      this.$router.push({
        name: "exchangeVip",
      });
    },
  },
};
</script>

<style scoped>
.login-head {
  width: 100%;
  height: 1.2576rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0092e8;
}
.login-title {
  color: white;
  position: relative;
  left: -0.5405rem;
  font-size: 0.5405rem;
}
.waist-part-list1 {
  width: 100%;
  height: 1.2703rem;
  /* padding-left: 0.4054rem; */
}
.buy {
  width: 1.6473rem;
  height: 0.7603rem;
  color: #f60 !important;
  border: 0.027rem solid #f60;
  text-align: center;
  line-height: 0.7603rem;
  border-radius: 0.2703rem;
  margin-right: 0.5405rem;
}
.waist-part-list1 > p {
  color: #666;
  font-size: 0.4459rem;
  border-bottom: 0.027rem solid #f5f5f5;
  line-height: 1.2703rem;
}
.waist-part-list2 > p {
  font-size: 0.4459rem;
  color: #333;
}
.waist-part-list2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 1.6216rem;
}
.waist-part {
  background-color: #fff;
  padding-left: 0.4054rem;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 0.2703rem;
}

.middle-part-list-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 2.4595rem;
}
.middle-part-list-2-right h5 {
  font-size: 0.4514rem;
  color: #333;
}
.middle-part-list-2-right p {
  font-size: 0.3243rem;
  color: #999;
}
.middle-part-list-2-left img {
  width: 1.027rem;
  height: 1.1622rem;
}
.middle-part-list-2-right {
  margin-right: 0.9459rem;
}
.middle-part {
  background-color: #fff;
  padding: 0 0.4054rem;
  box-sizing: border-box;
  margin-bottom: 0.2703rem;
}
.middle-part-list-1 {
  width: 100%;
  height: 1.2703rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.middle-part-list-1 > p:nth-child(1) {
  font-size: 0.4459rem;
  color: #333;
}
.leg-part {
  width: 100%;
  height: 1.2703rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.4054rem;
  box-sizing: border-box;
  background-color: #fff;
  margin-bottom: 0.2703rem;
}
.leg-part > p:nth-child(1) {
  font-size: 0.4324rem;
  color: #666;
}
.leg-part > p:nth-child(2) {
  font-size: 0.3784rem;
  color: #999;
}
.middle-part-list-1 > p:nth-child(2) {
  font-size: 0.3919rem;
  color: #999;
}
.welcome {
  width: 100%;
  line-height: 1.2432rem;
  height: 1.2432rem;
  background-color: #f5f5f5;
  color: #666;
  font-size: 0.4324rem;
  box-sizing: border-box;
  padding-left: 0.2703rem;
}
</style>